package com.example.springdemo8.controller;


import com.example.springdemo8.service.ServiceDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.Map;

@RestController
@RequestMapping("/admin")
public class Controller {
    @Autowired
    private ServiceDemo serviceDemo;
    @RequestMapping("/check")
    public boolean check(String saveCaptcha, HttpSession session) {
        return serviceDemo.check(saveCaptcha, session);
    }

}

